//
//  YCTabBarButton.h
//  lianganyuchu
//
//  Created by iMac on 17/2/20.
//  Copyright © 2017年 杭州桑缇电子商务有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    YFChoiceButtonStatusTypeUnselected,
    YFChoiceButtonStatusTypeSelected
} YFChoiceButtonStausType;

@protocol YCButtonDelegate <NSObject>

- (void)YFChoiceButtonSelectedIndex:(NSUInteger)index;

@end

@interface YCTabBarButton : UIButton

@property (nonatomic, assign) int index;
@property (nonatomic, assign) id<YCButtonDelegate>delegate;
@property (nonatomic, assign) YFChoiceButtonStausType choiceType;


@property (nonatomic, assign) UILabel *labTitle;
@property (nonatomic, assign) UILabel *labIndator;

+ (id)buttonWithFrame:(CGRect)frame
            withIndex:(int)index
    withTitle:(NSString *)title;




@end
